import 'package:flutter/material.dart';
import 'package:flutter_demo/demo/token/view/home_screen.dart';
import 'package:flutter_demo/demo/token/view/splash_screen.dart';
import 'package:flutter_demo/demo/token/view/login_screen.dart';

/// Great Article: https://medium.com/flutterpub/organizing-a-token-authentication-with-a-splash-using-flutter-dd6a510338dc
void main() => runApp(new MyApp());

class MyApp extends StatelessWidget {

  @override
  Widget build(BuildContext context) {
    return new MaterialApp(
      title: "Splash and Token Authentication",
      routes: <String,WidgetBuilder>{
        "/HomeScreen": (BuildContext context) => HomeScreen(),
        "/LoginScreen": (BuildContext context) => LoginScreen(),
      },
      home: SplashScreen(),
    );
  }
}
